﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AccompanyCabinet.CabinetControl
{
    public partial class TitleUC : UserControl
    {
        public TitleUC()
        {
            InitializeComponent();
        }

        private void TitleUC_Load(object sender, EventArgs e)
        {
            BackColor = Color.FromArgb(255, 160, 0);
            label1.Text = DateTime.Now.ToString();
            this.label1.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            this.timer1.Interval = 1000;
            this.timer1.Start();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            label1.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}
